<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="javascript:getVerifiCode()">
    <img id="yzm_img" style="cursor:pointer;width: 100px;height: 36px;margin: 5px 0 0 5px;border-radius: 3px;" title="点击刷新验证码" src="getVerifiCode"/>
</a>
</body>
<script src="src\main\resources\static\layui\js\jquery-3.2.1.min.js"></script>
<script>
    function getVerifiCode() {
        $("#yzm_img").prop('src','getVerifiCode?a='+new Date().getTime());
    }
</script>
</html>